package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZQW
 */
public class Constantitem extends Model<Constantitem> {

private static final long serialVersionUID=1L;

    /**
     * ID主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属常数类别ID
     */
    @TableField("ConstantTypeID")
    private Integer ConstantTypeID;

    public String getConstantType() {
        return ConstantType;
    }

    public void setConstantType(String constantType) {
        ConstantType = constantType;
    }

    /**
     * 所属常数类别ID
     */
    @TableField(exist = false)
    private String ConstantType;

    /**
     * 常数项编码
     */
    @TableField("ConstantCode")
    private String ConstantCode;

    /**
     * 常数项名称
     */
    @TableField("ConstantName")
    private String ConstantName;

    /**
     * 删除标记
     */
    @TableField("DelMark")
    private Integer DelMark;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getConstantTypeID() {
        return ConstantTypeID;
    }

    public void setConstantTypeID(Integer ConstantTypeID) {
        this.ConstantTypeID = ConstantTypeID;
    }

    public String getConstantCode() {
        return ConstantCode;
    }

    public void setConstantCode(String ConstantCode) {
        this.ConstantCode = ConstantCode;
    }

    public String getConstantName() {
        return ConstantName;
    }

    public void setConstantName(String ConstantName) {
        this.ConstantName = ConstantName;
    }

    public Integer getDelMark() {
        return DelMark;
    }

    public void setDelMark(Integer DelMark) {
        this.DelMark = DelMark;
    }

    public static final String ID = "ID";

    public static final String CONSTANTTYPEID = "ConstantTypeID";

    public static final String CONSTANTCODE = "ConstantCode";

    public static final String CONSTANTNAME = "ConstantName";

    public static final String DELMARK = "DelMark";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Constantitem{" +
        "id=" + id +
        ", ConstantTypeID=" + ConstantTypeID +
        ", ConstantCode=" + ConstantCode +
        ", ConstantName=" + ConstantName +
        ", DelMark=" + DelMark +
        "}";
    }
}
